// xxx.js
import router from '@system.router';
import prompt from '@system.prompt';
import myReq from "../../common/http/myReq.js"

export default {
    data:{
        moreshow:false,
        fresh:false,
        classify:[
            {
                id:1,name:"包包",  cicon:"/common/temp/bag.png"
            },{
                id:2,name:"T恤", cicon:"/common/temp/cloth.png"
            },{
                id:3,name:"大衣", cicon:"/common/temp/dayi.png"
            },{
                id:4,name:"短裤" ,cicon:"/common/temp/duanku.png"
            },{
                id:5,name:"短裙", cicon:"/common/temp/duanqun.png"
            },{
                id:6,name:"帽子", cicon:"/common/temp/hat.png"
            },{
                id:7,name:"高跟鞋", cicon:"/common/temp/heel.png"
            },{
                id:8,name:"运动鞋", cicon:"/common/temp/shoes.png"
            },{
                id:6,name:"墨镜", cicon:"/common/temp/sunglass.png"
            },{
                id:7,name:"卫衣", cicon:"/common/temp/weiyi.png"
            }
        ],
        current:1,
        goodsList:[
            {
                id:8,goodsDetail:'洞洞鞋 2022新款',goodsImg:'/common/shoes/shoes.jpg',price:'99'
            }, {
                id:9,goodsDetail:'男子低帮时尚华夫运动鞋',goodsImg:'/common/temp/goods2.png',price:'399'
            }, {
                id:10,goodsDetail:'男子刺绣柔软纯棉T恤',goodsImg:'/common/temp/goods3.png',price:'129'
            }, {
                id:11,goodsDetail:'【2022新品】李宁反伍BADFIVE惟楚棉夹克',goodsImg:'/common/temp/goods4.png',price:'129'
            }, {
                id:12,goodsDetail:'CBA专业篮球系列男子比赛裤',goodsImg:'/common/temp/goods5.png',price:'199'
            }, {
                id:13,goodsDetail:'男女套头卫衣',goodsImg:'/common/temp/goods6.png',price:'429'
            }, {
                id:14,goodsDetail:'PUMA TEAM BOMBER JACKET 男子梭织外套',goodsImg:'/common/temp/goods7.png',price:'499'
            }, {
                id:15,goodsDetail:'DAS CC GRAPHIC HALF-ZIP CREW W女子针织卫衣',goodsImg:'/common/temp/goods8.png',price:'329'
            },
        ],
        goodsList1:[
            {
                id:16,goodsDetail:'男子复古运动鞋',goodsImg:'/common/temp/goods1.png',price:'299'
            }, {
                id:17,goodsDetail:'男子低帮时尚华夫运动鞋',goodsImg:'/common/temp/goods2.png',price:'399'
            }, {
                id:18,goodsDetail:'男子刺绣柔软纯棉T恤',goodsImg:'/common/temp/goods3.png',price:'129'
            }, {
                id:19,goodsDetail:'【2022新品】李宁反伍BADFIVE惟楚棉夹克',goodsImg:'/common/temp/goods4.png',price:'129'
            }, {
                id:20,goodsDetail:'CBA专业篮球系列男子比赛裤',goodsImg:'/common/temp/goods5.png',price:'199'
            }, {
                id:21,goodsDetail:'男女套头卫衣',goodsImg:'/common/temp/goods6.png',price:'429'
            }, {
                id:22,goodsDetail:'PUMA TEAM BOMBER JACKET 男子梭织外套',goodsImg:'/common/temp/goods7.png',price:'499'
            }, {
                id:23,goodsDetail:'DAS CC GRAPHIC HALF-ZIP CREW W女子针织卫衣',goodsImg:'/common/temp/goods8.png',price:'329'
            },
        ],
        inigoodslist:[]

    },

    tabChange(e){
        console.info("Tab index: " + e.index)
    },
    swipeTo() {
        this.$element('swiper').swipeTo({
            index: 2
        });
    },
    showNext() {
        this.$element('swiper').showNext();
    },
    showPrevious() {
        this.$element('swiper').showPrevious();
    },
    gosearch() {
        //加载界面
    router.push({
        uri:"pages/mysearch/mysearch"
    })
    },
    godetail(){
//        prompt.showToast({
//            message:e
//        }),
        router.push({
            uri:"pages/detail/detail"
        })
    },
    goclassify(){
        router.push({
//            进入分类页面
            uri:"pages/study/study"
        })
    },
    close(){
        const dialog = this.$element("loadialog");
        dialog.close();
    }
}
